<?php
/**
 * 分类管理
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-6-17
 * Time: 下午2:37
 */
namespace app\modules\cn\controllers;
use app\libs\IeltsController;
use app\modules\cn\models\Content;
use yii;
use UploadFile;
use app\libs\GetData;
use app\libs\AppControl;

//use app\libs\PHPExcel_Reader_Excel2007();

class UploaderController extends IeltsController
{

    public $enableCsrfValidation = false;
    public $layout = false;
    //excel 编辑
    public function actionBaiduexcel(){
        return $this->render('baiduexcel');
    }

    //textarea 编辑
    public function actionTextarea(){
        return $this->render('textarea');
    }
    //   上传  列表
    public function actionList()
    {   
             return $this->render('list');
    }
    // 听力分题型上传修改  --听力  
    public function actionIndex()
    {   
//      $url="/files/attach/file/20181101/1541057226645347.xls";
//      $model =new Content();
//      $data= $model->getexcelvalue($url);
        // var_dump($data);
        // 单词
        // return $this->render('exceluploadword',['ReportArr'=>$data]);
        // 真题
//      return $this->render('excelupload',['ReportArr'=>$data]);
             return $this->render('exceluploadindex');
    }


    //  阅读 上传 
    public function actionRead()
    {   
             return $this->render('exceluploadread');
    }
    //  单词上传修改
    public function actionWords()
    {   
             return $this->render('exceluploadword');
    }
    //  写作上传  ---口语-- 写作
    public function actionWrite()
    {   
       return $this->render('exceluploadwrite');
    }



    // 练习音频下载
    public function actionDownaudio()
    {   
         return $this->render('downaudio');
    }


        // 采集时间   和   中英文
    public function actionTimes()
    {   
             return $this->render('times');
    }








    // 模考 
    // 模考-- 音频下载
    public function actionDownaudiomokao()
    {   
         return $this->render('downaudiomokao');
    }


        // 模考 
    // 模考-- 音频下载
    public function actionDeletemokao()
    {   
         return $this->render('deletemokao');
    }


    public function actionRead1(){
        return $this->render('read1');
    }

    public function actionRead2(){
        return $this->render('read2');
    }

    public function actionRead3(){
        return $this->render('read3');
    }

    public function actionListen(){
        return $this->render('listen');
    }

}